From: Christian Hergert Date: Sun, 26 Dec 2021 20:43:22 +0000 (-0800) Subject: testsuite: ignore texthistory selection on delete/backspace X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~91^2^2~3^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=22b1abb36dcd159249906e3c264c5c329a430244;p=gtk4.git testsuite: ignore texthistory selection on delete/backspace We don't need to apply these here, as it will clear the selection which is needed for the undo. Otherwise we won't be able to test that we end up at the right selection afterwards. --- diff --git a/testsuite/gtk/texthistory.c b/testsuite/gtk/texthistory.c index a740d3523b..4da0dc5ab0 100644 --- a/testsuite/gtk/texthistory.c +++ b/testsuite/gtk/texthistory.c @@ -251,8 +251,6 @@ run_test (const Command *commands, set_selection (text, cmd->location, cmd->end_location); else if (strlen (cmd->text) == 1) set_selection (text, cmd->location, -1); - else - set_selection (text, -1, -1); command_delete_key (cmd, text); break; @@ -261,8 +259,6 @@ run_test (const Command *commands, set_selection (text, cmd->location, cmd->end_location); else if (strlen (cmd->text) == 1) set_selection (text, cmd->end_location, -1); - else - set_selection (text, -1, -1); command_delete_key (cmd, text); break;